package com.example.bookstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bookstore.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookMapper extends BaseMapper<Book> {
    @Select("select * from Book where book_id =#{bookId}")
    Book selectByBookId(String bookId);
    @Select("select id from Book where book_name like #{bookName}")
    List<Integer> selectLikBookName(String bookName);
}
